package com.hom;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
            String s ="八嘎";
            StringBuilder sb = new StringBuilder(s);
            sb.append("亚路").append("嘶啦嘶啦地");
            s = sb.toString();
        System.out.println(s);
        List list = new ArrayList();
        list.add(100);
        list.add(200);
        list.add(300);
        list.add(400);

        list.remove(new Integer(200));
        System.out.println(list);

        LinkedList list1 = new LinkedList();
        list1.add("Mary");
        list1.add("kiki");
        list.addAll(list1);
        System.out.println(list);

        list1.addFirst("bich");
        System.out.println(list1);

        list1.remove("bich");
        System.out.println(list1);

        list1.removeFirst();

        System.out.println(list1);



    }
}
